namespace WanFang.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class add_test_historydata : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.HistoryDatas",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        MachineCode = c.String(),
                        Yw = c.Decimal(nullable: false, precision: 18, scale: 2),
                        Wd = c.Decimal(nullable: false, precision: 18, scale: 2),
                        GnYl = c.Decimal(nullable: false, precision: 18, scale: 2),
                        JtYl = c.Decimal(nullable: false, precision: 18, scale: 2),
                        Cyll = c.Decimal(nullable: false, precision: 18, scale: 2),
                        Kd = c.Decimal(nullable: false, precision: 18, scale: 2),
                        CreationTime = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.HistoryDatas");
        }
    }
}
